import request from '../utils/request';
const baseUrl = getApp().globalData.baseUrl

// 获取信息
export function getInfo(data) {
  return request({
    url: `${baseUrl}/electronic/getInfo`,
    method: 'post',
    data
  })
}

// 积分获取 / 积分消费
export function queryPlusCredit(data, url) {
  return request({
    url: `${baseUrl}/electronic/${url}?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  })
}


// 获取手机号
export function toGetPhoneNumber(data) {
  return request({
    url: `${baseUrl}/dealer/getPhoneNumber`,
    method: 'post',
    data
  })
}
